package com.university.mentalhealthplatform.global.rbac.dto.request;

import com.university.mentalhealthplatform.global.rbac.model.AccessLevel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class EndpointRequest {
    private String path;  // 接口路径
    private String method;  // 请求方法 (GET, POST, PUT, DELETE)
    private AccessLevel accessLevel;  // 接口访问级别 (PUBLIC, PRIVATE, PROTECTED)
    private boolean allowAnonymous; //是否可以匿名访问

    // 构造函数
    public EndpointRequest() {
    }

    // 带参数的构造函数
    public EndpointRequest(String path, String method, AccessLevel accessLevel, boolean allowAnonymous) {
        this.path = path;
        this.method = method;
        this.accessLevel = accessLevel;
        this.allowAnonymous = allowAnonymous;
    }

}
